<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单前端界面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
        }
        .container {
            width: 400px;
            padding: 20px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            text-align: center;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-size: 16px;
        }
        input {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            margin-bottom: 20px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
        button {
            width: 100%;
            padding: 10px;
            background-color: #42b983;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
        }
        button:hover {
            background-color: #36a370;
        }
        .output {
            margin-top: 20px;
            padding: 10px;
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            border-radius: 5px;
            word-wrap: break-word;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>简单前端界面</h1>

        <!-- 输入框 -->
        <label for="inputText">请输入文本：</label>
        <input type="text" id="inputText" placeholder="请输入文本" />

        <!-- 确定按钮 -->
        <button onclick="handleSubmit()">确定</button>

        <!-- 输出区域 -->
        <div id="outputArea" class="output"></div>·
    </div>

    <script>
        function handleSubmit() {
            // 获取输入框的值
            var inputText = document.getElementById('inputText').value;

            // 显示输入的文本到输出区域
            document.getElementById('outputArea').innerText = inputText;
        }
    </script>
</body>
</html>
